

<div class="col-sm-12 mt20" >
<div class="panel panel-default">
<div class="panel-body">
<div class="col-sm-12">

    <div class="row">
        <div class="col-sm-2">
            <input type="text" class="form-control" ng-model="searchform.code" placeholder="产品编号">
        </div>
        <div class="col-sm-2">
            <input type="text" class="form-control" ng-model="searchform.name" placeholder="产品名称"> 
        </div>
        <div class="col-sm-2">
            
        </div>
        <div class="col-sm-2">
           
        </div>

        <div class="col-sm-2 col-sm-offset-2">
            <button class="btn btn-block btn-info" ng-click="load(searchform)">搜索</button> 
        </div>

    </div>

</div>
</div>
</div>
<!-- searchArea -->

<div class="panel panel-default">
    <div class="panel-body">
        <table class="table table-condensed table-hover table-bordered">
            <thead>
                <tr>
                    <th class="col-md-6 text-center">产品</th>
                    <th class="col-md-2 text-center">库存</th>
                    <th class="col-md-2 text-center">所属商家</th>
                    <th class="col-md-2 text-center">操作</th>
                </tr>
            </thead>
            <tbody>
                <tr ng-repeat="obj in objs">
                    <td class="">
                        产品名称：{{obj.name}}<br>
                        产品编号：{{obj.code}}<br>
                        指导价：{{obj.guide_price | currency : '￥'}}
                    </td>
                    <td class="text-center">
                        <br>
                        <span ng-if="obj.stock_type == '1'" >
                            {{obj.current_stock_num}}
                        </span>
                        <span ng-if="obj.stock_type == '0'" >不启用</span>
                    </td>
                    <td class="text-center">
                   	 	{{obj.company_name}}<br>
                        {{obj.company_code}}
                    </td>
                    <td class="text-center">
                        <a ng-click="up(obj)" class="btn btn-success btn-xs" ng-show="obj.company_code != company_code">上架到商城</a>
                    </td>
                </tr>
            </tbody>
        </table>
        <div class="text-right">
             <pagination total-items="bigTotalItems" ng-model="bigCurrentPage" ng-change="load()" previous-text="上一页" next-text="下一页"
                first-text="首页" last-text="尾页" max-size="maxSize" boundary-links="true" rotate="false" items-per-page="itemsPerPage"
                class="m-t-none m-b">
            </pagination>
        </div>
    </div>
</div>

</div>